<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    function checkAdd() {
    	alert("kjdbhf")
    	 if($("#nickName").val()==""){
    		 $("#nickNameMess").val("昵称不能为空")
			  return false;
		  }
    	 if($("#password").val()==""){
    		 $("#passwordMess").val("密码不能为空")
			  return false;
		  }
    	 if($("#repassword").val()==""){
    		 $("#repasswordMess").val("再次密码不能为空")
			  return false;
		  }
    	 if($("#email").val()==""){
    		 $("#emailMess").val("邮箱不能为空")
			  return false;
		  }
    	 if($("#repassword").val()!=$("#password").val()){
    		 $("#repasswordMess").val("密码和确定密码不一致")
			  return false;
		  }
    }
})
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>



<body>
	<body>
	<div style="background-color: #778899; padding: 11.5px;position: relative;right: -253px;width: 1604px;">
		<h2>修改物管密码</h2>
	</div>
	<div style="background-color: #F0F8FF;position: relative;right: -253px;width: 1627px;">
		<div style="padding: 60px;">
          
			<div class="login-area">
		<form action="doupdateUser" style="padding: 70px; border: 0.5px black solid;background:rgba(0,0,0,.2);">
			<table>
			 <tr>
			   <td>	用户名:</td>
			   <td><input type="text" id="nickName"  name="nickName" value="${user.nickName }" required="required"/><br/></td>
			   <td id="nickNameMess"></td>
			</tr>
			<tr>
			<td>
				密码：
			</td>
			<td><input type="password" id="password" name="password" required="required" /><br/></td>
			<td id="passwordMess"></td>
			</tr>
			<tr>
			<td>
				确认密码：
			</td>
			<td><input type="password" id="repassword" name="repassword" required="required"/><br/></td>
			<td id="repasswordMess"></td>
			</tr>
			<tr>
			<td>
			邮箱地址：
			</td>
			<td><input type="email" id="email" name="email" value="${user.email }" required="required"/><br/></td>
			<td id="emailMess"></td>
			</tr>
			<tr>
			  <td><input type="submit"  value="确定"/></td>
			  <td><input type="button"  value="取消"/></td>
			<tr>
			</table>
		</form>
	</div>
		</div>
	</div>
</body>
</body>
</html>